home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / bin / mint-compress < prev    next >
Encoding:
Text File  |  2007-05-16  |  289 b   |  16 lines

  1. #!/usr/bin/env python
  2.  
  3. import sys
  4. import os
  5.  
  6. directory = sys.argv[1]
  7. directory = str.strip(directory)
  8. directory = str.replace(directory, "/", "")
  9. mintfile = directory + ".mint"
  10.  
  11. os.chdir(directory)
  12. os.system("tar cvf file *")
  13. os.system("gzip file")
  14. os.system("mv file.gz ../" + mintfile)
  15.  
  16.